//仿写deps.js 将iserver的配置写入SuperMapConfig.js中，方便打包后修改其中的配置信息。

const iServerConfig = {
  URL: 'http://36.152.38.212:8090',
  TOKEN: 'your_token_here',
};

//将配置信息挂载到window.SuperMapConfig上，方便全局调用
window.SuperMapConfig = {
  iServerConfig,
  // 二维地图服务
  iServerMapServiceList: [
    {
      name: '二维地图服务',
      url: iServerConfig.URL + '/iserver/services/map-world/rest/maps/World',
      type: 'REST',
      visible: true,
      layers: ['World'],
      projection: 'EPSG:4326',
      format: 'png',
      transparent: true,
      cacheEnabled: true,
      maxScale: 18000000,
      minScale: 1000000,
      dpi: 96,
      origin: [0, 0],
      bounds: [-180, -90, 180, 90],
      center: [0, 0, 0],
      level: 1,
      tileSize: [256, 256],
      tileVersion: 'v1',
      tileFormat: 'image/png',
      tileOverlap: 0,
      tileCachePath: 'D:/iserver/data/World',
    },
  ],

  // 三维服务
  iServer3DServiceList: [
    {
      name: '三维服务',
      url: iServerConfig.URL + '/iserver/services/3D-World/rest/realspace',
      type: 'REST',
      visible: true,
      layers: ['World'],
      projection: 'EPSG:4326',
      format: 'png',
      transparent: true,
      cacheEnabled: true,
      maxScale: 18000000,
      minScale: 1000000,
      dpi: 96,
      origin: [0, 0],
      bounds: [-180, -90, 180, 90],
      center: [0, 0, 0],
      level: 1,
      tileSize: [256, 256],
    },
  ],
  // 数据服务
  iServerDataService: [
    {
      name: '数据服务',
      url: iServerConfig.URL + '/iserver/services/data-world/rest',
      type: 'REST',
      dataName: 'World',
      dataProjection: 'EPSG:4326',
      dataFormat: 'geojson',
      dataFilter: '',
      dataMaxFeatures: 100000,
      dataEnabled: true,
      dataCacheEnabled: true,
      dataCachePath: 'D:/iserver/data/World',
    },
  ],
};
